import { createRouter, createWebHistory } from "vue-router";

const routes = [
  {
    path: "/",
    name: "Home",
    component: () => import("../views/Home.vue"),
  },
  {
    path: "/home",
    name: "Home",
    component: () => import("../views/Home.vue"),
  },
  {
    path: "/talk",
    name: "Talk",
    component: () => import("../views/Talk.vue"),
    children: [
      {
        path: 'leetcode',
        name: "Leetcode",
        component: () => import("../views/Markdown.vue"),
      }
    ]
  },
  {
    path: "/tech/",
    name: "Tech",
    component: () => import("../views/Tech.vue"),
    children: [
      {
        path: '',
        name: "techmenu",
        component: () => import("../views/Markdown.vue"),
      },
      {
        path: 'python',
        name: "Python",
        component: () => import("../views/Card.vue"),
      },
      {
        path: 'c++',
        name: "C++",
        component: () => import("../views/Card.vue"),
      },
      {
        path: 'javascript',
        name: "JavaScript",
        component: () => import("../views/Card.vue"),
      },
    ]
  },
];

export default createRouter({
  history: createWebHistory(),
  routes,
});